package com.qiaofang.applet.common.dto;

import com.qiaofang.applet.common.constant.ResponseCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 分页查询响应参数
 * @author QF2019
 */
@Data
@AllArgsConstructor
@ApiModel("分页查询响应参数")
public class PageDataResponse<T> extends DataResponse<T> {

    @ApiModelProperty(value = "页码", example = "1")
    private int pageNo;

    @ApiModelProperty(value = "每页数据条数", example = "20")
    private int pageSize;

    @ApiModelProperty(value = "总条数", example = "20")
    private long totalCount;

    public PageDataResponse() {
        this.setStatus(ResponseCode.SUCC.getStatus());
        this.setMessage(ResponseCode.SUCC.getMessage());
    }
}
